package com.sharding.jdbc.mybatis;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;

@SpringBootApplication
@EnableAutoConfiguration // (exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {
        "com.sharding.jdbc.mybatis",
        "io.shardingsphere.jdbc.spring.boot"
})
@PropertySource(value = {
        "classpath:/sharding-datasource.properties",
        "classpath:/sharding-value.properties",
        "classpath:/sharding-value2.properties",
        "classpath:/sharding-value3.properties"
})
public class MybatisApplication {
    public static void main (String... args) {
        SpringApplication application = new SpringApplication(MybatisApplication.class);
        application.run(args);
    }
}
